﻿namespace ConsoleApp3
{
    class Linq
    {
        private double num1;
        private double num2;

        public Linq(double num1, double num2)
        {
            this.num1 = num1;
            this.num2 = num2;
        }
        public void Addtition()
        {
            double sum = this.num1 + this.num2;
            System.Console.WriteLine("和" + sum);
        }
        public void Subtraction()
        {
            double difference = this.num1 - this.num2;
            System.Console.WriteLine("差" + difference);
        }
        public void Multiplication()
        {
            double prodcut = this.num1 * this.num2;
            System.Console.WriteLine("积" + prodcut);
        }
        public void Division()
        {
            double quotitent = this.num1 / this.num2;
            System.Console.WriteLine("商" + quotitent);
        }
    }
}